package com.hcloud.uploadsdk;

import com.cloud.wolibrary.request.UploadRequest;

public class Upload {

    private String filePath;
    private UploadRequest uploadRequest;


    public Upload(String filePath, UploadRequest uploadRequest) {
        this.filePath = filePath;
        this.uploadRequest = uploadRequest;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public UploadRequest getUploadRequest() {
        return uploadRequest;
    }

    public void setUploadRequest(UploadRequest uploadRequest) {
        this.uploadRequest = uploadRequest;
    }

    public void cancel() {
        if (uploadRequest != null) {
            uploadRequest.cancel();
        }
    }
}
